import request from '@/utils/request'

 //API常量
 const APIS = {
  V1: "/v1"
}

export function listContract(params) {
  return request({
    url: APIS.V1+`/system/contract/list`,
    method: 'get',
    params:params
  })
}

export function createContract(data) {
  return request({
    url: APIS.V1+`/system/contract/save`,
    method: 'post',
    data
  })
}

export function updateContract(data) {
  return request({
    url: APIS.V1+`/system/contract/update`,
    method: 'post',
    data
  })
}

export function deleteContract(params) {
  return request({
    url: APIS.V1+`/system/contract/delete`,
    method: 'get',
    params:params
  })
}

export function exportContract(data) {
  return request({
    url: APIS.V1+`/system/contract/export`,
    method: 'post',
    data,
    responseType: 'blob'
  })
}
